package model.fshare.common;

import java.io.Serializable;

import model.fshare.common.Command;
import model.fshare.common.FShareOperations;

public class CMDDelete implements Command,Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int roomId;
	private String fileName;
	private int deleterId;
	
	public CMDDelete(int roomId, String fileName, int userId)
	{
		this.roomId = roomId;
		this.fileName = fileName;
		deleterId = userId;
	}

	@Override
	public Object command(FShareOperations operator) 
	{
		return operator.delete( roomId, fileName, deleterId );
	}

}
